NAME=	test

SRC =	$(wildcard */*.cpp)
SRC +=	$(wildcard *.cpp)
OBJ=	$(SRC:.cpp=.o)

CFLAGS +=	-Wall -I include/ -ggdb

LDFLAGS = -lSDL -lSDL_mixer -lSDL_image -lSDL_net -lSDL_ttf -lSDL_gfx

all:	$(NAME)

$(OBJ):
	g++ -c $(SRC) $(LDFLAGS) $(CFLAGS)

$(NAME):	$(OBJ)
	g++ -o $(NAME) $(OBJ) $(LDFLAGS)

clean:
	rm -f $(OBJ)

fclean:	clean
	rm -f $(NAME)

re:	fclean all 

.phony:	clean fclean re
